package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {

    List<ShoppingCart> getShoppingCartList(Long id);

    List<ShoppingCart> findShoppingCartByCondition(ShoppingCart shoppingCart);

    Integer insertShoppingCart(ShoppingCart cart);

    Integer updateNumber(@Param("id") Long id, @Param("i") int i);

    void deleteOne(ShoppingCart shoppingCart);

    void deleteLast(ShoppingCart shoppingCart);

    void deleteShoppingCart(Long currentId);

    Integer insertList(List<ShoppingCart> shoppingCartList);



    //void deleteOneSetmeal(Long setmealId, Long currentId);

}
